import 'package:fish_redux/fish_redux.dart';

enum EngineerResultViewAction {
  action,
  onTapResultPic,
  onTapResultPic2,
  onTapAddPic,
  onTapPic,
  onSubmit,
  onTapSign,
  onTapStatus,
  onSave,
}

class EngineerResultViewActionCreator {
  static Action onAction() {
    return const Action(EngineerResultViewAction.action);
  }

  static Action onSave() {
    return const Action(EngineerResultViewAction.onSave);
  }

  static Action onTapResultPic(data) {
    return Action(EngineerResultViewAction.onTapResultPic, payload: data);
  }

  static Action onTapResultPic2(data) {
    return Action(EngineerResultViewAction.onTapResultPic2, payload: data);
  }

  static Action onTapAddPic() {
    return const Action(EngineerResultViewAction.onTapAddPic);
  }

  static Action onTapPic(data) {
    return Action(EngineerResultViewAction.onTapPic, payload: data);
  }

  static Action onSubmit(isSave) {
    return Action(EngineerResultViewAction.onSubmit, payload: isSave);
  }

  static Action onTapSign() {
    return const Action(EngineerResultViewAction.onTapSign);
  }

  static Action onTapStatus(data) {
    return Action(EngineerResultViewAction.onTapStatus, payload: data);
  }
}
